
function logout(){
    $.ajax({
        url:"/users/logout",
        type:"GET",
        contentType:"application/json;charset=UTF8",
        dataType:"json",
        success:function (res){
            alert(res.msg)
        },
        error:function (){

        }
    })
}

    document.writeln("<!-- left side start-->");
    document.writeln("<div class=\'left-side sticky-left-side\'>");
    document.writeln("");
    document.writeln("    <!--logo and iconic logo start-->");
    document.writeln("    <div class=\'logo\'>");
    document.writeln("        <a href=\'index.html\'><img src=\'images/logo.png\' alt=\'\'></a>");
    document.writeln("    </div>");
    document.writeln("");
    document.writeln("    <div class=\'logo-icon text-center\'>");
    document.writeln("        <a href=\'index.html\'><img src=\'images/logo_icon.png\' alt=\'\'></a>");
    document.writeln("    </div>");
    document.writeln("    <!--logo and iconic logo end-->");
    document.writeln("");
    document.writeln("    <div class=\'left-side-inner\'>");
    document.writeln("");
    document.writeln("        <!-- visible to small devices only -->");
    document.writeln("        <div class=\'visible-xs hidden-sm hidden-md hidden-lg\'>");
    document.writeln("            <div class=\'media logged-user\'>");
    document.writeln("                <img alt=\'\' src=\'images/photos/user-avatar.png\' class=\'media-object\'>");
    document.writeln("                <div class=\'media-body\'>");
    document.writeln("                    <h4><a href=\'#\'>John Doe</a></h4>");
    document.writeln("                    <span>\'Hello There...\'</span>");
    document.writeln("                </div>");
    document.writeln("            </div>");
    document.writeln("");
    document.writeln("            <h5 class=\'left-nav-title\'>Account Information</h5>");
    document.writeln("            <ul class=\'nav nav-pills nav-stacked custom-nav\'>");
    document.writeln("                <li><a href=\'#\'><i class=\'fa fa-user\'></i> <span>Profile</span></a></li>");
    document.writeln("                <li><a href=\'#\'><i class=\'fa fa-cog\'></i> <span>Settings</span></a></li>");
    document.writeln("                <li><a href=\'#\'><i class=\'fa fa-sign-out\'></i> <span>Sign Out</span></a></li>");
    document.writeln("            </ul>");
    document.writeln("        </div>");
    document.writeln("");
    document.writeln("        <!--sidebar nav start-->");
    document.writeln("        <!-- 左侧菜单 -->");
    document.writeln("        <!-- 以下是一系列组件 -->");
    document.writeln("        <ul class=\'nav nav-pills nav-stacked custom-nav\'>");
    document.writeln("            <li class=\'active\'><a href=\'index.html\'><i class=\'fa fa-home\'></i> <span>首页</span></a></li>");
    document.writeln("            <li class=\'menu-list\'><a href=\'\'><i class=\'fa fa-laptop\'></i> <span>管理</span></a>");
    document.writeln("                <ul class=\'sub-menu-list\'>");
    document.writeln("                    <li><a href=\'g_user.html\' id='renyuan'> 人员管理</a></li>");
    // document.writeln("                    <li><a href=\'g_user.html\' style=\"pointer-events: none;cursor: default;color:gray;\"> 人员管理</a></li>");
    document.writeln("                    <li><a href=\'g_kaoqin.html\' id='kaoqin'> 考勤管理</a></li>");
    document.writeln("                    <li><a href=\'g_huopin.html\'> 货品管理</a></li>");
    document.writeln("                    <li><a href=\'g_ruku.html\' id='ruku'> 入库管理</a></li>");
    document.writeln("                    <li><a href=\'g_chuku.html\' id='chuku'> 出库管理</a></li>");
    document.writeln("                    <li><a href=\'g_zhangmu.html\'> 账目管理</a></li>");
    document.writeln("                </ul>");
    document.writeln("            </li>");
    document.writeln("            <li class=\'menu-list\'><a href=\'\'><i class=\'fa fa-book\'></i> <span>系统信息</span></a>");
    document.writeln("                <ul class=\'sub-menu-list\'>");
    document.writeln("                    <li><a href=\'x_dancaigou.html\'> 采购单模块</a></li>");
    document.writeln("                    <li><a href=\'x_danxiaoshou.html\'> 销售单模块</a></li>");
    document.writeln("                    <li><a href=\'x_guanliyuan.html\' id='guanliyuan'> 管理员事务管理</a></li>");
    document.writeln("                    <li><a href=\'x_dept.html\' id='bumenguanli'> 部门管理</a></li>");
    document.writeln("                    <li><a href=\'x_zhuyeshezhi.html\' id='zhuyeguanli'>  信息页(主页)显示管理</a></li>");
    document.writeln("");
    document.writeln("                </ul>");
    document.writeln("            </li>");
    document.writeln("");
    document.writeln("            <li><a href=\'login.html\'><i class=\'fa fa-sign-in\'></i> <span>登录</span></a></li>");
    document.writeln("            <li><a onclick='logout()'><i class=\'fa fa-sign-in\'></i> <span>退出登录</span></a></li>");
    document.writeln("");
    document.writeln("        </ul>");
    document.writeln("        <!-- 左侧菜单 -->");
    document.writeln("        <!--sidebar nav end-->");
    document.writeln("");
    document.writeln("    </div>");
    document.writeln("</div>");
    document.writeln("<!-- left side end-->");
    document.writeln("");
    document.writeln("");
